package com.xls.base.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xls.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xls
 * @since 2021-03-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Student对象", description="")
public class Student extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学号")
    private String sno;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private Integer gender;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "院系")
    private Long department;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "专业")
    private Long major;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "宿舍id")
    private Long roomId;

}
